package com.qfjy.shichengyong.dynamicproxy;

import com.qfjy.shichengyong.dynamicproxy.Person;

/**
 * @author:scy
 * @date:2022/9/13 19:18
 * @version:1.0
 */
public class Student implements Person {

    private String name;

    public Student(String name) {
        this.name = name;
    }

    @Override
    public void giveMoney() {

        try {
            //假设数钱花了一秒时间
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println(name + "上交班费");
    }


}
